<div class="row">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf">
            <form id="my-form" class="am-form tpl-form-line-form" method="post">
                <div class="widget-body">
                    <fieldset>
                        <div class="widget-head am-cf">
                            <div class="widget-title am-fl">申请提现</div>
                        </div>


                        <div class="am-form-group">
                            <div class="widget-title am-fl">可提现总金额：<?=$yue ?></div>
                        </div>
                        <div class="am-form-group">
                            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> 请输入提现金额 </label>
                            <div class="am-u-sm-9 am-u-end">
                                <input type="text" class="tpl-form-input" name="agent[money]" value=""
                                       required>
                            </div>
                        </div>


                        <div class="am-form-group">
                            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">开票状态 </label>
                            <div class="am-u-sm-9 am-u-end">
                                <label class="am-radio-inline">
                                    <input type="radio" name="agent[isKaipiao]" value="1" data-am-ucheck
                                           checked>
                                    有票
                                </label>
                                <label class="am-radio-inline">
                                    <input type="radio" name="agent[isKaipiao]" value="0" data-am-ucheck>
                                    无票
                                </label>
                            </div>
                        </div>
                        <div class="widget-head am-cf otherAnswer1">
                            <div class="widget-title am-fl">开票信息</div>
                        </div>
                        <div class="am-form-group otherAnswer2">
                            <div class="am-scrollable-horizontal">
                                <div class="am-table am-table-centered" style="text-align:center;">
                                    <div>
                                        <ul class="">
                                            <li>公司名称:<?= $config['company_name'] ?></li>
                                            <li>税号:<?= $config['taxation'] ?> </li>
                                            <li>公司地址:<?= $config['address'] ?> </li>
                                            <li>开户行:<?= $config['bank']  ?> </li>
                                            <li>银行卡号:<?= $config['bank_account']  ?> </li>
                                            <li>邮箱地址:<?= $config['email']  ?> </li>
                                            <li>费用信息:<?= $config['info']  ?> </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="widget-head am-cf otherAnswer1">
                            <div class="widget-title am-fl">邮寄信息</div>
                        </div>
                        <div class="am-form-group otherAnswer2">
                            <div class="am-scrollable-horizontal">
                                <div class="am-table am-table-centered" style="text-align:center;">
                                    <div>
                                        <ul class="">
                                            <li>邮寄地址:<?= isset($config['post_address']) ? $config['post_address'] :'' ?> </li>
                                            <li>联系人:<?= isset($config['contact']) ?$config['contact'] :''  ?> </li>
                                            <li>联系电话:<?= isset($config['mobile']) ? $config['mobile'] :''  ?> </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                </button>
                            </div>
                        </div>
                    </fieldset>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
    $(function () {
        $('#my-form').superForm();
    });
    $("input[type='radio']").change(function(){
        if($(this).val()=="1"){
            $(".otherAnswer1").show();
            $(".otherAnswer2").show();
        }
        else{
            $(".otherAnswer1").hide();
            $(".otherAnswer2").hide();
        }

    });
</script>
